
using Infrastructure.Extensions;
using ZR.Model.Enums;

namespace ZR.Model.BaseFrame.Entity
{
    /// <summary>
    /// 数据字典
    /// </summary>
    public class DataDicEntityBase
    {
        /// <summary>
        /// 上级字典
        /// </summary>
        public long PaDataDicId { get; set; }

        /// <summary>
        /// 数据字典标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public long DataDicId { get; set; }

        /// <summary>
        /// 数据名
        /// </summary>
        public string DataName { get; set; }= string.Empty;

        /// <summary>
        /// 数据代码
        /// </summary>
        public string DataCode { get; set; }= string.Empty;

        /// <summary>
        /// 排序编号
        /// </summary>
        public int SortNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人标识
        /// </summary>
        public long CreaterId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creater { get; set; }= string.Empty;

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 修改人标识
        /// </summary>
        public long? ModifierId { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string Modifier { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string StateCode { get; set; } = DataStateEnum.Enabled.ToEnumCode();

    }
}